package com.ccn.crm.service.impl;

import com.ccn.crm.mapper.UserMapper;
import com.ccn.crm.mapper.UserViewMapper;
import com.ccn.crm.model.User;
import com.ccn.crm.model.UserView;
import com.ccn.crm.service.IUser;
import com.ccn.crm.service.IUserView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserViewServiceImpl implements IUserView {

    @Autowired
    private UserViewMapper userViewMapper;
    @Override
    public int updateProducts(UserView record) {
        return userViewMapper.updateProducts(record);
    }

    @Override
    public UserView selectByAccount(String account) {
        return userViewMapper.selectByAccount(account);
    }
}
